<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;

class BaseController extends Controller
{
    public function json($message,$data)
    {
        return response()->json([
            'code'=>0,
            'msg'=>$message,
            'data'=>$data,
            'request'=>request()->all()
        ]);
    }
}
